<template>
  <div id="app" class="overflow-auto" :style="'height:'+maxHeight">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'app',
  computed:{
    maxHeight(){
        return window.outerHeight+'px';
    }
  },
  methods:{
      listenSetEnv(){
          this.$store.commit('login',ENV);
      }
  },
  mounted(){
      document.addEventListener('SetEnvEvent',this.listenSetEnv,false);
  }
}
</script>
